package com.shopowner.entity;

import java.util.ArrayList;
import java.util.List;

public class FieldExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public FieldExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andFnoIsNull() {
            addCriterion("fno is null");
            return (Criteria) this;
        }

        public Criteria andFnoIsNotNull() {
            addCriterion("fno is not null");
            return (Criteria) this;
        }

        public Criteria andFnoEqualTo(String value) {
            addCriterion("fno =", value, "fno");
            return (Criteria) this;
        }

        public Criteria andFnoNotEqualTo(String value) {
            addCriterion("fno <>", value, "fno");
            return (Criteria) this;
        }

        public Criteria andFnoGreaterThan(String value) {
            addCriterion("fno >", value, "fno");
            return (Criteria) this;
        }

        public Criteria andFnoGreaterThanOrEqualTo(String value) {
            addCriterion("fno >=", value, "fno");
            return (Criteria) this;
        }

        public Criteria andFnoLessThan(String value) {
            addCriterion("fno <", value, "fno");
            return (Criteria) this;
        }

        public Criteria andFnoLessThanOrEqualTo(String value) {
            addCriterion("fno <=", value, "fno");
            return (Criteria) this;
        }

        public Criteria andFnoLike(String value) {
            addCriterion("fno like", value, "fno");
            return (Criteria) this;
        }

        public Criteria andFnoNotLike(String value) {
            addCriterion("fno not like", value, "fno");
            return (Criteria) this;
        }

        public Criteria andFnoIn(List<String> values) {
            addCriterion("fno in", values, "fno");
            return (Criteria) this;
        }

        public Criteria andFnoNotIn(List<String> values) {
            addCriterion("fno not in", values, "fno");
            return (Criteria) this;
        }

        public Criteria andFnoBetween(String value1, String value2) {
            addCriterion("fno between", value1, value2, "fno");
            return (Criteria) this;
        }

        public Criteria andFnoNotBetween(String value1, String value2) {
            addCriterion("fno not between", value1, value2, "fno");
            return (Criteria) this;
        }

        public Criteria andStnoIsNull() {
            addCriterion("stno is null");
            return (Criteria) this;
        }

        public Criteria andStnoIsNotNull() {
            addCriterion("stno is not null");
            return (Criteria) this;
        }

        public Criteria andStnoEqualTo(String value) {
            addCriterion("stno =", value, "stno");
            return (Criteria) this;
        }

        public Criteria andStnoNotEqualTo(String value) {
            addCriterion("stno <>", value, "stno");
            return (Criteria) this;
        }

        public Criteria andStnoGreaterThan(String value) {
            addCriterion("stno >", value, "stno");
            return (Criteria) this;
        }

        public Criteria andStnoGreaterThanOrEqualTo(String value) {
            addCriterion("stno >=", value, "stno");
            return (Criteria) this;
        }

        public Criteria andStnoLessThan(String value) {
            addCriterion("stno <", value, "stno");
            return (Criteria) this;
        }

        public Criteria andStnoLessThanOrEqualTo(String value) {
            addCriterion("stno <=", value, "stno");
            return (Criteria) this;
        }

        public Criteria andStnoLike(String value) {
            addCriterion("stno like", value, "stno");
            return (Criteria) this;
        }

        public Criteria andStnoNotLike(String value) {
            addCriterion("stno not like", value, "stno");
            return (Criteria) this;
        }

        public Criteria andStnoIn(List<String> values) {
            addCriterion("stno in", values, "stno");
            return (Criteria) this;
        }

        public Criteria andStnoNotIn(List<String> values) {
            addCriterion("stno not in", values, "stno");
            return (Criteria) this;
        }

        public Criteria andStnoBetween(String value1, String value2) {
            addCriterion("stno between", value1, value2, "stno");
            return (Criteria) this;
        }

        public Criteria andStnoNotBetween(String value1, String value2) {
            addCriterion("stno not between", value1, value2, "stno");
            return (Criteria) this;
        }

        public Criteria andFnameIsNull() {
            addCriterion("fName is null");
            return (Criteria) this;
        }

        public Criteria andFnameIsNotNull() {
            addCriterion("fName is not null");
            return (Criteria) this;
        }

        public Criteria andFnameEqualTo(String value) {
            addCriterion("fName =", value, "fname");
            return (Criteria) this;
        }

        public Criteria andFnameNotEqualTo(String value) {
            addCriterion("fName <>", value, "fname");
            return (Criteria) this;
        }

        public Criteria andFnameGreaterThan(String value) {
            addCriterion("fName >", value, "fname");
            return (Criteria) this;
        }

        public Criteria andFnameGreaterThanOrEqualTo(String value) {
            addCriterion("fName >=", value, "fname");
            return (Criteria) this;
        }

        public Criteria andFnameLessThan(String value) {
            addCriterion("fName <", value, "fname");
            return (Criteria) this;
        }

        public Criteria andFnameLessThanOrEqualTo(String value) {
            addCriterion("fName <=", value, "fname");
            return (Criteria) this;
        }

        public Criteria andFnameLike(String value) {
            addCriterion("fName like", value, "fname");
            return (Criteria) this;
        }

        public Criteria andFnameNotLike(String value) {
            addCriterion("fName not like", value, "fname");
            return (Criteria) this;
        }

        public Criteria andFnameIn(List<String> values) {
            addCriterion("fName in", values, "fname");
            return (Criteria) this;
        }

        public Criteria andFnameNotIn(List<String> values) {
            addCriterion("fName not in", values, "fname");
            return (Criteria) this;
        }

        public Criteria andFnameBetween(String value1, String value2) {
            addCriterion("fName between", value1, value2, "fname");
            return (Criteria) this;
        }

        public Criteria andFnameNotBetween(String value1, String value2) {
            addCriterion("fName not between", value1, value2, "fname");
            return (Criteria) this;
        }

        public Criteria andFimgIsNull() {
            addCriterion("fImg is null");
            return (Criteria) this;
        }

        public Criteria andFimgIsNotNull() {
            addCriterion("fImg is not null");
            return (Criteria) this;
        }

        public Criteria andFimgEqualTo(String value) {
            addCriterion("fImg =", value, "fimg");
            return (Criteria) this;
        }

        public Criteria andFimgNotEqualTo(String value) {
            addCriterion("fImg <>", value, "fimg");
            return (Criteria) this;
        }

        public Criteria andFimgGreaterThan(String value) {
            addCriterion("fImg >", value, "fimg");
            return (Criteria) this;
        }

        public Criteria andFimgGreaterThanOrEqualTo(String value) {
            addCriterion("fImg >=", value, "fimg");
            return (Criteria) this;
        }

        public Criteria andFimgLessThan(String value) {
            addCriterion("fImg <", value, "fimg");
            return (Criteria) this;
        }

        public Criteria andFimgLessThanOrEqualTo(String value) {
            addCriterion("fImg <=", value, "fimg");
            return (Criteria) this;
        }

        public Criteria andFimgLike(String value) {
            addCriterion("fImg like", value, "fimg");
            return (Criteria) this;
        }

        public Criteria andFimgNotLike(String value) {
            addCriterion("fImg not like", value, "fimg");
            return (Criteria) this;
        }

        public Criteria andFimgIn(List<String> values) {
            addCriterion("fImg in", values, "fimg");
            return (Criteria) this;
        }

        public Criteria andFimgNotIn(List<String> values) {
            addCriterion("fImg not in", values, "fimg");
            return (Criteria) this;
        }

        public Criteria andFimgBetween(String value1, String value2) {
            addCriterion("fImg between", value1, value2, "fimg");
            return (Criteria) this;
        }

        public Criteria andFimgNotBetween(String value1, String value2) {
            addCriterion("fImg not between", value1, value2, "fimg");
            return (Criteria) this;
        }

        public Criteria andFstateIsNull() {
            addCriterion("fState is null");
            return (Criteria) this;
        }

        public Criteria andFstateIsNotNull() {
            addCriterion("fState is not null");
            return (Criteria) this;
        }

        public Criteria andFstateEqualTo(String value) {
            addCriterion("fState =", value, "fstate");
            return (Criteria) this;
        }

        public Criteria andFstateNotEqualTo(String value) {
            addCriterion("fState <>", value, "fstate");
            return (Criteria) this;
        }

        public Criteria andFstateGreaterThan(String value) {
            addCriterion("fState >", value, "fstate");
            return (Criteria) this;
        }

        public Criteria andFstateGreaterThanOrEqualTo(String value) {
            addCriterion("fState >=", value, "fstate");
            return (Criteria) this;
        }

        public Criteria andFstateLessThan(String value) {
            addCriterion("fState <", value, "fstate");
            return (Criteria) this;
        }

        public Criteria andFstateLessThanOrEqualTo(String value) {
            addCriterion("fState <=", value, "fstate");
            return (Criteria) this;
        }

        public Criteria andFstateLike(String value) {
            addCriterion("fState like", value, "fstate");
            return (Criteria) this;
        }

        public Criteria andFstateNotLike(String value) {
            addCriterion("fState not like", value, "fstate");
            return (Criteria) this;
        }

        public Criteria andFstateIn(List<String> values) {
            addCriterion("fState in", values, "fstate");
            return (Criteria) this;
        }

        public Criteria andFstateNotIn(List<String> values) {
            addCriterion("fState not in", values, "fstate");
            return (Criteria) this;
        }

        public Criteria andFstateBetween(String value1, String value2) {
            addCriterion("fState between", value1, value2, "fstate");
            return (Criteria) this;
        }

        public Criteria andFstateNotBetween(String value1, String value2) {
            addCriterion("fState not between", value1, value2, "fstate");
            return (Criteria) this;
        }

        public Criteria andFdescIsNull() {
            addCriterion("fDesc is null");
            return (Criteria) this;
        }

        public Criteria andFdescIsNotNull() {
            addCriterion("fDesc is not null");
            return (Criteria) this;
        }

        public Criteria andFdescEqualTo(String value) {
            addCriterion("fDesc =", value, "fdesc");
            return (Criteria) this;
        }

        public Criteria andFdescNotEqualTo(String value) {
            addCriterion("fDesc <>", value, "fdesc");
            return (Criteria) this;
        }

        public Criteria andFdescGreaterThan(String value) {
            addCriterion("fDesc >", value, "fdesc");
            return (Criteria) this;
        }

        public Criteria andFdescGreaterThanOrEqualTo(String value) {
            addCriterion("fDesc >=", value, "fdesc");
            return (Criteria) this;
        }

        public Criteria andFdescLessThan(String value) {
            addCriterion("fDesc <", value, "fdesc");
            return (Criteria) this;
        }

        public Criteria andFdescLessThanOrEqualTo(String value) {
            addCriterion("fDesc <=", value, "fdesc");
            return (Criteria) this;
        }

        public Criteria andFdescLike(String value) {
            addCriterion("fDesc like", value, "fdesc");
            return (Criteria) this;
        }

        public Criteria andFdescNotLike(String value) {
            addCriterion("fDesc not like", value, "fdesc");
            return (Criteria) this;
        }

        public Criteria andFdescIn(List<String> values) {
            addCriterion("fDesc in", values, "fdesc");
            return (Criteria) this;
        }

        public Criteria andFdescNotIn(List<String> values) {
            addCriterion("fDesc not in", values, "fdesc");
            return (Criteria) this;
        }

        public Criteria andFdescBetween(String value1, String value2) {
            addCriterion("fDesc between", value1, value2, "fdesc");
            return (Criteria) this;
        }

        public Criteria andFdescNotBetween(String value1, String value2) {
            addCriterion("fDesc not between", value1, value2, "fdesc");
            return (Criteria) this;
        }

        public Criteria andFaddressIsNull() {
            addCriterion("fAddress is null");
            return (Criteria) this;
        }

        public Criteria andFaddressIsNotNull() {
            addCriterion("fAddress is not null");
            return (Criteria) this;
        }

        public Criteria andFaddressEqualTo(String value) {
            addCriterion("fAddress =", value, "faddress");
            return (Criteria) this;
        }

        public Criteria andFaddressNotEqualTo(String value) {
            addCriterion("fAddress <>", value, "faddress");
            return (Criteria) this;
        }

        public Criteria andFaddressGreaterThan(String value) {
            addCriterion("fAddress >", value, "faddress");
            return (Criteria) this;
        }

        public Criteria andFaddressGreaterThanOrEqualTo(String value) {
            addCriterion("fAddress >=", value, "faddress");
            return (Criteria) this;
        }

        public Criteria andFaddressLessThan(String value) {
            addCriterion("fAddress <", value, "faddress");
            return (Criteria) this;
        }

        public Criteria andFaddressLessThanOrEqualTo(String value) {
            addCriterion("fAddress <=", value, "faddress");
            return (Criteria) this;
        }

        public Criteria andFaddressLike(String value) {
            addCriterion("fAddress like", value, "faddress");
            return (Criteria) this;
        }

        public Criteria andFaddressNotLike(String value) {
            addCriterion("fAddress not like", value, "faddress");
            return (Criteria) this;
        }

        public Criteria andFaddressIn(List<String> values) {
            addCriterion("fAddress in", values, "faddress");
            return (Criteria) this;
        }

        public Criteria andFaddressNotIn(List<String> values) {
            addCriterion("fAddress not in", values, "faddress");
            return (Criteria) this;
        }

        public Criteria andFaddressBetween(String value1, String value2) {
            addCriterion("fAddress between", value1, value2, "faddress");
            return (Criteria) this;
        }

        public Criteria andFaddressNotBetween(String value1, String value2) {
            addCriterion("fAddress not between", value1, value2, "faddress");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}